/**
* @(#)com.pylc.model.entity.Member.java
* 
* @date 2012-6-17
*/
package com.pylc.model.entity;

import javax.persistence.*;

import java.util.Date;

/** 
 * 
 * @author <a href="mailto:yuanyichen@gmail.com">（H0rol4</a>
 * @version 1.0 
 */
@Entity
@Table
public class Member extends BaseEntity {
	private static final long serialVersionUID = -6462829001884666718L;
	
	private String name;
	private String password;
	private String email;
	private long loginNum;
	private Date currentLoginTime;
	private Date lastLoginTime;
	private String currentLoginIp;
	private String lastLoginIp;
	private String qqOpenId;
	private String qqInfo;
	private String sinaOpenId;
	private String sinaInfo;
	private long points;
	private Boolean isLocked;
	private int loginAttempts;
	
	@Column
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Column
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	@Column
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	@Column
	public long getLoginNum() {
		return loginNum;
	}
	public void setLoginNum(long loginNum) {
		this.loginNum = loginNum;
	}
	
	@Column
	public Date getCurrentLoginTime() {
		return currentLoginTime;
	}
	public void setCurrentLoginTime(Date currentLoginTime) {
		this.currentLoginTime = currentLoginTime;
	}
	
	@Column
	public Date getLastLoginTime() {
		return lastLoginTime;
	}
	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	
	@Column
	public String getCurrentLoginIp() {
		return currentLoginIp;
	}
	public void setCurrentLoginIp(String currentLoginIp) {
		this.currentLoginIp = currentLoginIp;
	}
	
	@Column
	public String getLastLoginIp() {
		return lastLoginIp;
	}
	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}
	
	@Column
	public String getQqOpenId() {
		return qqOpenId;
	}
	public void setQqOpenId(String qqOpenId) {
		this.qqOpenId = qqOpenId;
	}
	
	@Column
	public String getQqInfo() {
		return qqInfo;
	}
	public void setQqInfo(String qqInfo) {
		this.qqInfo = qqInfo;
	}
	
	@Column
	public String getSinaOpenId() {
		return sinaOpenId;
	}
	public void setSinaOpenId(String sinaOpenId) {
		this.sinaOpenId = sinaOpenId;
	}
	
	@Column
	public String getSinaInfo() {
		return sinaInfo;
	}
	public void setSinaInfo(String sinaInfo) {
		this.sinaInfo = sinaInfo;
	}
	
	@Column
	public long getPoints() {
		return points;
	}
	public void setPoints(long points) {
		this.points = points;
	}

	@Column
	public boolean getIsLocked() {
		return isLocked;
	}
	public void setIsLocked(boolean isLocked) {
		this.isLocked = isLocked;
	}
	
	@Column
	public int getLoginAttempts() {
		return loginAttempts;
	}
	public void setLoginAttempts(int loginAttempts) {
		this.loginAttempts = loginAttempts;
	}		
}
